<template>
  <el-tree-select
    v-bind="item"
    :data="item.options"
    :props="item.props"
    :placeholder="item.placeholder || '请选择' + item.label"
    v-model="model[item.prop]"
    :render-after-expand="item.renderAfterExpand || item['render-after-expand'] || false"
    :multiple="item.multiple || false"
    :check-strictly="item.checkStrictly || item['check-strictly'] || false"
    v-on="item.events || {}"
    :clearable="item.clearable === false ? false : true"
  >
  </el-tree-select>
</template>

<script setup>
const props = defineProps({
  item: Object,
  model: Object
})
</script>
